
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type StoreProductDescriptionRequest struct {

	ProductId string `json:"product_id" form:"product_id"`

	Description string `json:"description" form:"description"`

	Type string `json:"type" form:"type"`

}

func (r *StoreProductDescriptionRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *StoreProductDescriptionRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"product_id": "required",

		"description": "required",

		"type": "required",

	}
}

func (r *StoreProductDescriptionRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreProductDescriptionRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *StoreProductDescriptionRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
